<?php
/**链接数据库**/
$dbhost = "localhost";
$username = "root";
$userpass = "123";
$dbdatabase = "test";

$dbconnect = mysql_connect($dbhost,$username,$userpass) or die("Unable to connect to the Mysql!");
mysql_select_db($dbdatabase);
mysql_query("SET　NAMES UTF8");
?>